package com.bjc.principle.chainresp;

/**
 * @program: DesignPattern
 * @description: 责任链模式
 * @author: bjc
 * @create: 2021-01-04 16:15
 */
public class ChainRespPattern {
    public static void main(String[] args) {
        Handler level1 = new Leader();
        Handler level2 = new Boss();
        level1.setNextHandler(level2);

        level1.process(10);
        level1.process(11);
    }
}
